/**
 * Created by giscafer on 2017/3/5.
 */
const getSize = () => {
    let windowW,windowH,contentH,contentW,scrollT;
    windowH = window.innerHeight;
    windowW = window.innerWidth;
    scrollT = document.documentElement.scrollTop || document.body.scrollTop;
    contentH = (document.documentElement.scrollHeight > document.body.scrollHeight) ? document.documentElement.scrollHeight : document.body.scrollHeight;
    contentW = (document.documentElement.scrollWidth > document.body.scrollWidth) ? document.documentElement.scrollWidth : document.body.scrollWidth;
    return {windowW,windowH,contentH,contentW,scrollT}
}

export default getSize;